package com.ruoyi.system.repository.service;

import com.ruoyi.system.repository.domain.Member;

import java.util.List;


/**
 * 会员Service接口
 *
 * @author qiang
 * @date 2021-01-01
 */
public interface IMemberService {
    /**
     * 查询会员
     *
     * @param phone 会员ID
     * @return 会员
     */
    public Member selectMemberById(String phone);

    /**
     * 查询会员列表
     *
     * @param member 会员
     * @return 会员集合
     */
    public List<Member> selectMemberList(Member member);

    /**
     * 新增会员
     *
     * @param member 会员
     * @return 结果
     */
    public int insertMember(Member member);

    /**
     * 修改会员
     *
     * @param member 会员
     * @return 结果
     */
    public int updateMember(Member member);

    /**
     * 批量删除会员
     *
     * @param phones 需要删除的会员ID
     * @return 结果
     */
    public int deleteMemberByIds(String[] phones);

    /**
     * 删除会员信息
     *
     * @param phone 会员ID
     * @return 结果
     */
    public int deleteMemberById(String phone);


    String login(Member user);

    Member findByPhone(String phone);

    String findByPhoneAndPwd(Member user);

    String changeUser(Member user);

    String logon(Member user);

    String changePwd(Member user);

    String judge(String openid);

    String addOpenid(String openid,String phone);
}
